using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Configuration;

namespace Wootbar
{
    public partial class settings : Form
    {        
        public settings()
        {
            InitializeComponent();
        }

        private void settings_Load(object sender, EventArgs e)
        {
            label1.Text = string.Format("{0} {1}",Properties.Settings.Default.AppName, Properties.Settings.Default.AppVersion);
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {          
            
            Properties.Settings.Default.MatchString = txtSearch.Text;
            Properties.Settings.Default.AppLaunchBuy = chkLaunchBuy.Checked;
            Properties.Settings.Default.AppAlert = chkSound.Checked;
            Properties.Settings.Default.AnimatedAlert = chkAnimatedLight.Checked;
            Properties.Settings.Default.AlertNew  = chkNewItemSound.Checked;
            Properties.Settings.Default.ShowImage = chkShowImage.Checked;
            Properties.Settings.Default.Save();
            this.Close();
        }
    }
}